<template>
    <div class="infoTextBox">
      <div class="infoTextBox-title">
        {{title}}
      </div>
      <div class="infoTextBox-main">
        <slot></slot>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'infoTextBox',
    props: ['title']
  }
</script>

<style scoped>
  .infoTextBox {
    width: 100%;
  }

  .infoTextBox-title {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 32rpx;
    position: relative;
    padding-bottom: 15rpx;
  }

  .infoTextBox-title::after {
    position: absolute;
    content: " ";
    width: 55rpx;
    height: 2rpx;
    background: rgba(51, 170, 255, 1);
    bottom: 0;
  }

  .infoTextBox-main {
    margin-top: 35rpx;
  }
</style>
